//
//  ByHomeTitleValueView.m
//  recordworktool_ios
//
//  Created by mc on 2017/11/30.
//  Copyright © 2017年 ZhangZhanbin. All rights reserved.
//

#import "ByHomeTitleValueView.h"

@implementation ByHomeTitleValueView

- (id)init{
    self = [super init];
    if (self){

        self.titleLabel = [[UILabel alloc] init];
        [self addSubview:self.titleLabel];
        [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self).offset(10);
            make.right.equalTo(self).offset(-10);
            make.top.equalTo(self).offset(10);
            make.height.mas_equalTo(@20);
        }];
        self.titleLabel.text = @"借支";
        self.titleLabel.textColor = [UIColor whiteColor];
        self.titleLabel.font = FONT(15);
        self.titleLabel.textAlignment = NSTextAlignmentCenter;
        
        
        self.valueLabel = [[UILabel alloc] init];
        [self addSubview:self.valueLabel];
        [self.valueLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self).offset(10);
            make.right.equalTo(self).offset(-10);
            make.bottom.equalTo(self).offset(-10);
            make.height.mas_equalTo(@20);
        }];
        self.valueLabel.text = @"0";
        self.valueLabel.textColor = [UIColor whiteColor];
        self.valueLabel.font = FONT(15);
        self.valueLabel.textAlignment = NSTextAlignmentCenter;
        self.valueLabel.adjustsFontSizeToFitWidth = YES;
    }
    return self;
}

@end
